package com.zhixiang.xaec.entity.system;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

@Entity
@Table(name="sys_app_dicDetail")
@Comment("字典明细表")
public class DicDetail
{

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long detailId;
    
    @Comment("编号")
    @Column(length=10)
    private String codeNo;
    
    @Comment("名字")
    private String codeName;
    
    @ManyToOne(cascade = CascadeType.ALL, optional = false)
    @JoinColumn(name="dictype_id")
    @Comment("类型")
    private DicType dicType;
    
    @Comment("备注")
    @Column(length=255)
    private String remark;

    public Long getDetailId()
    {
        return detailId;
    }

    public void setDetailId(Long detailId)
    {
        this.detailId = detailId;
    }

    public String getCodeNo()
    {
        return codeNo;
    }

    public void setCodeNo(String codeNo)
    {
        this.codeNo = codeNo;
    }

    public String getCodeName()
    {
        return codeName;
    }

    public void setCodeName(String codeName)
    {
        this.codeName = codeName;
    }

    public DicType getDicType()
    {
        return dicType;
    }

    public void setDicType(DicType dicType)
    {
        this.dicType = dicType;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }


}
